home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / misc / oncew.sty < prev    next >
Text File  |  1991-08-08  |  834b  |  16 lines

  1. %%% This is onecw.sty, version of 29 june 1990, by Nico Verwer.
  2. %%% Normally, LaTeX issues a warning every time it encounters an
  3. %%% undefined citation. Thus you will get multiple warnings for the same
  4. %%% citation. When you include this sty file, only one warning will be
  5. %%% issued for every citation.
  6. %%% Almost all of this code is directly taken from latex.tex.
  7. %%% Please email suggestions (I'm still looking for a better name),
  8. %%% comments, etc. to verwer@cs.ruu.nl .
  9. \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  10.   \def\@citea{}\@cite{\@for\@citeb:=#2\do
  11.     {\@citea\def\@citea{,\penalty\@m\ }\@ifundefined
  12.        {b@\@citeb}{{\bf ?}\@warning
  13.        {Citation `\@citeb' on page \thepage \space undefined}
  14.        \global\@namedef{b@\@citeb}{{\bf ?}}}%
  15. \hbox{\csname b@\@citeb\endcsname}}}{#1}}
  16.